
$(document).ready(function(){
    $('.accordion').accordion();
    $(".fancybox").fancybox({
        beforeLoad: function() {
            this.title = $(this.element).attr('caption');
        }
    });
});